/*
 * SampleCallBack.h
 *
 *  Created on: 2011-10-13
 *      Author: terry
 */

#ifndef SAMPLECALLBACK_H_
#define SAMPLECALLBACK_H_

#include "BasicType.h"

namespace av
{


class SampleCallBack
{
public:
    virtual ~SampleCallBack() {}

    virtual HRESULT onAudioSample(
            double SampleTime,
            BYTE *pBuffer,
            long BufferLen) =0;


    virtual HRESULT onVideoSample(
            double SampleTime,
            BYTE *pBuffer,
            long BufferLen) =0;
};


} // 

#endif /* SAMPLECALLBACK_H_ */
